const {queryCategoriesDB} = require('../db/articleCate');
//应用层
//检查登录状态？
//调用数据库操作

const queryCategories = async ()=>{
    try{
        return await queryCategoriesDB();
    }catch(err){
        console.log(err);
        throw err;  //继续抛出
    }
}

exports.queryCategories = queryCategories;